<!DOCTYPE html>
<head>
	<meta charset="utf-8">
	<link rel="stylesheet" href="/src/css/bootstrap.min.css">
	<script src="/src/js/jquery.js"></script>
	<script src="/src/js/bootstrap.min.js"></script>
	<style type="text/css">
		a.post_link:visited{
			color:#CD6839;
		}
		body{
			background-color: #F1F1F1;
			background-image: url(<?php background() ?>); 
			background-repeat:no-repeat;
			background-attachment:fixed;  
		}
	</style>

</head>
<span id="nav_active" AM={$_GET['bid']}></span>
<body>
	<?php
		$boards=allboard();
	?>
	<div class="container">
		<div class="row " style="margin:10px;">
		<nav   >
		<ul class="nav nav-pills" >
			<li id="n_home"><a href="/">Home</a></li>
			<volist name="boards" id="boa">
				<li id="n_{$boa[bid]}"><a href="/index.php/Index/board?bid={$boa[bid]}">{$boa[name]}</a></li>
			</volist>
		</ul>
		</nav>
		</div>


		{__CONTENT__}
	</div>

	<div class="container">

		<p> 
			<small class="muted">Powered by <a href="http://git.oschina.net/supercell/smbbs">smbbs</a> 耗时<?php echo round(microtime()-$_SESSION['time'],4)?>ms</small>
		</p>
	</div>
</body>
<script type="text/javascript"> 
	var n_id=$("#nav_active").attr("AM");
	$("#n_"+n_id).addClass("active");	 
	var nav_post=$("#nav_post").attr("AM");	 
	if(!n_id&&!nav_post){
		$("#n_home").addClass("active");	 
	}	 
</script>
<script type="text/javascript">
<?php echo js() ?>
</script>